/* 
 * File:   mh.h
 * Author: samik
 *
 * Created on 25 November, 2008, 8:23 PM
 */
#include "simulator.h"
#ifndef _MH_H
#define	_MH_H
#ifdef	__cplusplus
extern "C" {
#endif

/*
     * Structure: MH (Mobile Host)
     */
    typedef struct {
        int id;
        int hs; //current home station
    } Mobile_host;


    //functions performed by MHs
    void compute(int MH_NO);
    static void *receive(int SOCKET_DESCRIPTOR);
    int connect_to_hs();


#ifdef	__cplusplus
}
#endif

#endif	/* _MH_H */

